home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94b.txt / 000025_icon-group-sender _Tue Aug 30 11:33:50 1994.msg < prev    next >
Internet Message Format  |  1995-02-09  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 30 Aug 1994 06:44:54 MST
  2. To: icon-group-l@cs.arizona.edu
  3. Date: Tue, 30 Aug 1994 11:33:50 GMT
  4. From: bsa@kf8nh.wariat.org (Brandon S. Allbery)
  5. Message-Id: <1994Aug30.113350.5310@kf8nh.wariat.org>
  6. Organization: Brandon's Linux box and AmPR node, Mentor, OH
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <33smt8$meg@ios.com>, <1994Aug29.223512.12423@kf8nh.wariat.org>, <33ua3h$51h@ios.com>
  9. Subject: Re: Icon - still alive??
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. In article <33ua3h$51h@ios.com>, nmw@ios.com (Nick Williams) says:
  13. +---------------
  14. | In article <1994Aug29.223512.12423@kf8nh.wariat.org>,
  15. | Brandon S. Allbery <bsa@kf8nh.wariat.org> wrote:
  16. | >Binary file I/O for non-character data would be nice.  Or, alternatively,
  17. | >functions akin to Perl's pack()/unpack().  I have several Perl scripts I would
  18. | I thought reads() was meant to be used for binary data, am I wrong? If
  19. | characters in Icon can be treated as plain bytes then pack()/unpack()
  20. | type procedures could be built upon reads()/writes().
  21. +------------->8
  22.  
  23. You can, and I have --- and as a result I have *one* (and only one, until the
  24. situation is resolved) program which uses reads() and translates C (long)s
  25. into a form Icon can internalize.  And if I ever decide to move the program
  26. from SCO to Solaris it's going to have to be rewritten because the endianness
  27. is different between them.  (And again, htonl() is not an option.)
  28.  
  29. And then there's the question of binary floating point format...
  30.  
  31. ++Brandon
  32. -- 
  33. Brandon S. Allbery KF8NH     [44.70.4.88]          bsa@kf8nh.wariat.org
  34. Linux development:  iBCS2, JNOS, MH
  35. Daily dreading Nehemiah Scudder^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HRush Limbaugh
  36.